.tableOfContents {
  max-height: calc(100vh - (var(--ifm-navbar-height) + 2rem));
  overflow-y: auto;
  overflow-x: visible;
  position: sticky;
  top: calc(var(--ifm-navbar-height) + 1rem);
  /* Remove vertical border/separator */
  border-left: none;
}

.separator {
  width: 100%;
  height: 1px;
  background-color: var(--ifm-toc-border-color);
  margin: 1rem 0;
}

.copyButton {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid var(--ifm-toc-border-color);
  border-radius: 6px;
  color: var(--ifm-font-color-base);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.copyButton:hover {
  background-color: var(--ifm-color-emphasis-100);
  border-color: var(--ifm-color-primary);
  color: var(--ifm-color-primary);
}

.copyButton:active {
  transform: scale(0.98);
}

.copyIcon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.copyButtonText {
  flex: 1;
  text-align: left;
  font-weight: 500;
}


@media (max-width: 996px) {
  .tableOfContents {
    display: none;
  }

  .docItemContainer {
    padding: 0 0.3rem;
  }
}
